package com.patrol.logisticsmanage.ui.message;

import android.os.Bundle;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.patrol.logisticsmanage.R;
import com.patrol.logisticsmanage.ui.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

@Route(path = "/app/MessageActivity")
public class MessageActivity extends BaseActivity {

    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.rcy_message)
    RecyclerView rcyMessage;

    MessageAdapter messageAdapter;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_message);
        ButterKnife.bind(this);

        tvTitle.setText("通知消息");
        rcyMessage.setLayoutManager(new LinearLayoutManager(this,LinearLayoutManager.VERTICAL,false));
        messageAdapter = new MessageAdapter(this);
        rcyMessage.setAdapter(messageAdapter);
    }
}
